<style lang="scss" src="./scss/list.scss"></style>

<template>
  <section class="mod-list">
    <Item
      v-for="(todo, index) in todos"
      :key="todo.id"
      :todo="todo"
      :deleteTodo="deleteTodo"
      :index="index"
      :updateTodo="updateTodo"
    />
  </section>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import Item from "../components/item.vue";
export default defineComponent({
  props: ["todos", "deleteTodo", "updateTodo"],
  components: {
    Item,
  },
  setup() {
    return {};
  },
});
</script>
